package com.lufei4.chestnut.workspace.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lufei4.chestnut.R;
import com.lufei4.chestnut.workspace.bean.BeanQuestions;

import java.util.List;

/**
 * @ProjectName: Chestnut
 * @Package: com.lufei4.chestnut.workspace.adapter
 * @ClassName: H5TestQuestionsAdapter
 * @Description: java类作用描述
 * @Author: liushijiang 15833013864@163.com
 * @CreateDate: 2021/1/14 10:19
 * @UpdateUser: 更新者：
 * @UpdateDate: 2021/1/14 10:19
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */

public class H5TestQuestionsAdapter extends BaseQuickAdapter<BeanQuestions, BaseViewHolder> {
    public H5TestQuestionsAdapter(@Nullable List<BeanQuestions> data) {
        super(R.layout.item_question,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BeanQuestions item) {
        ImageView imageView = (ImageView) helper.getView(R.id.iv_pic1);
        imageView.setImageDrawable(ContextCompat.getDrawable(mContext,item.resources));
    }
}
